package one.stand.model;

import java.io.Serializable;
import java.util.Date;

public class Chat implements Serializable {
    private Long id;

    private String cid;

    private Long userid;

    private Long targetUserId;

    private String targetAvatar;

    private String targetUsername;

    private String lastcontent;

    private Long lasttime;

    private Date ctime;

    private Integer online;

    private Integer appOnline;

    private static final long serialVersionUID = 1L;

    public Chat(Long id, String cid, Long userid, Long targetUserId, String targetAvatar, String targetUsername, String lastcontent, Long lasttime, Date ctime, Integer online, Integer appOnline) {
        this.id = id;
        this.cid = cid;
        this.userid = userid;
        this.targetUserId = targetUserId;
        this.targetAvatar = targetAvatar;
        this.targetUsername = targetUsername;
        this.lastcontent = lastcontent;
        this.lasttime = lasttime;
        this.ctime = ctime;
        this.online = online;
        this.appOnline = appOnline;
    }

    public Chat() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid == null ? null : cid.trim();
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(Long targetUserId) {
        this.targetUserId = targetUserId;
    }

    public String getTargetAvatar() {
        return targetAvatar;
    }

    public void setTargetAvatar(String targetAvatar) {
        this.targetAvatar = targetAvatar == null ? null : targetAvatar.trim();
    }

    public String getTargetUsername() {
        return targetUsername;
    }

    public void setTargetUsername(String targetUsername) {
        this.targetUsername = targetUsername == null ? null : targetUsername.trim();
    }

    public String getLastcontent() {
        return lastcontent;
    }

    public void setLastcontent(String lastcontent) {
        this.lastcontent = lastcontent == null ? null : lastcontent.trim();
    }

    public Long getLasttime() {
        return lasttime;
    }

    public void setLasttime(Long lasttime) {
        this.lasttime = lasttime;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public Integer getAppOnline() {
        return appOnline;
    }

    public void setAppOnline(Integer appOnline) {
        this.appOnline = appOnline;
    }
}